<form action="register.php" method="post">
  昵称：<input type="text" name="username" required><br>
  密码：<input type="password" name="password" required><br>
  邮箱：<input type="email" name="email" required><br>
  <input type="submit" value="注册">
</form>